| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::AppSync::DataSource; | ||
| 3 | use Moose; | ||
| 4 | has DataSourceArn => (is => 'ro', isa => 'Str', request_name => 'dataSourceArn', traits => ['NameInRequest']); | ||
| 5 | has Description => (is => 'ro', isa => 'Str', request_name => 'description', traits => ['NameInRequest']); | ||
| 6 | has DynamodbConfig => (is => 'ro', isa => 'Paws::AppSync::DynamodbDataSourceConfig', request_name => 'dynamodbConfig', traits => ['NameInRequest']); | ||
| 7 | has ElasticsearchConfig => (is => 'ro', isa => 'Paws::AppSync::ElasticsearchDataSourceConfig', request_name => 'elasticsearchConfig', traits => ['NameInRequest']); | ||
| 8 | has HttpConfig => (is => 'ro', isa => 'Paws::AppSync::HttpDataSourceConfig', request_name => 'httpConfig', traits => ['NameInRequest']); | ||
| 9 | has LambdaConfig => (is => 'ro', isa => 'Paws::AppSync::LambdaDataSourceConfig', request_name => 'lambdaConfig', traits => ['NameInRequest']); | ||
| 10 | has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest']); | ||
| 11 | has RelationalDatabaseConfig => (is => 'ro', isa => 'Paws::AppSync::RelationalDatabaseDataSourceConfig', request_name => 'relationalDatabaseConfig', traits => ['NameInRequest']); | ||
| 12 | has ServiceRoleArn => (is => 'ro', isa => 'Str', request_name => 'serviceRoleArn', traits => ['NameInRequest']); | ||
| 13 | has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest']); | ||
| 14 | |||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::AppSync::DataSource | ||
| 22 | |||
| 23 | =head1 USAGE | ||
| 24 | |||
| 25 | This class represents one of two things: | ||
| 26 | |||
| 27 | =head3 Arguments in a call to a service | ||
| 28 | |||
| 29 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 30 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 31 | |||
| 32 | As an example, if Att1 is expected to be a Paws::AppSync::DataSource object: | ||
| 33 | |||
| 34 | $service_obj->Method(Att1 => { DataSourceArn => $value, ..., Type => $value }); | ||
| 35 | |||
| 36 | =head3 Results returned from an API call | ||
| 37 | |||
| 38 | Use accessors for each attribute. If Att1 is expected to be an Paws::AppSync::DataSource object: | ||
| 39 | |||
| 40 | $result = $service_obj->Method(...); | ||
| 41 | $result->Att1->DataSourceArn | ||
| 42 | |||
| 43 | =head1 DESCRIPTION | ||
| 44 | |||
| 45 | Describes a data source. | ||
| 46 | |||
| 47 | =head1 ATTRIBUTES | ||
| 48 | |||
| 49 | |||
| 50 | =head2 DataSourceArn => Str | ||
| 51 | |||
| 52 | The data source ARN. | ||
| 53 | |||
| 54 | |||
| 55 | =head2 Description => Str | ||
| 56 | |||
| 57 | The description of the data source. | ||
| 58 | |||
| 59 | |||
| 60 | =head2 DynamodbConfig => L<Paws::AppSync::DynamodbDataSourceConfig> | ||
| 61 | |||
| 62 | Amazon DynamoDB settings. | ||
| 63 | |||
| 64 | |||
| 65 | =head2 ElasticsearchConfig => L<Paws::AppSync::ElasticsearchDataSourceConfig> | ||
| 66 | |||
| 67 | Amazon Elasticsearch Service settings. | ||
| 68 | |||
| 69 | |||
| 70 | =head2 HttpConfig => L<Paws::AppSync::HttpDataSourceConfig> | ||
| 71 | |||
| 72 | HTTP endpoint settings. | ||
| 73 | |||
| 74 | |||
| 75 | =head2 LambdaConfig => L<Paws::AppSync::LambdaDataSourceConfig> | ||
| 76 | |||
| 77 | AWS Lambda settings. | ||
| 78 | |||
| 79 | |||
| 80 | =head2 Name => Str | ||
| 81 | |||
| 82 | The name of the data source. | ||
| 83 | |||
| 84 | |||
| 85 | =head2 RelationalDatabaseConfig => L<Paws::AppSync::RelationalDatabaseDataSourceConfig> | ||
| 86 | |||
| 87 | Relational database settings. | ||
| 88 | |||
| 89 | |||
| 90 | =head2 ServiceRoleArn => Str | ||
| 91 | |||
| 92 | The AWS IAM service role ARN for the data source. The system assumes | ||
| 93 | this role when accessing the data source. | ||
| 94 | |||
| 95 | |||
| 96 | =head2 Type => Str | ||
| 97 | |||
| 98 | The type of the data source. | ||
| 99 | |||
| 100 | =over | ||
| 101 | |||
| 102 | =item * | ||
| 103 | |||
| 104 | B<AMAZON_DYNAMODB>: The data source is an Amazon DynamoDB table. | ||
| 105 | |||
| 106 | =item * | ||
| 107 | |||
| 108 | B<AMAZON_ELASTICSEARCH>: The data source is an Amazon Elasticsearch | ||
| 109 | Service domain. | ||
| 110 | |||
| 111 | =item * | ||
| 112 | |||
| 113 | B<AWS_LAMBDA>: The data source is an AWS Lambda function. | ||
| 114 | |||
| 115 | =item * | ||
| 116 | |||
| 117 | B<NONE>: There is no data source. This type is used when you wish to | ||
| 118 | invoke a GraphQL operation without connecting to a data source, such as | ||
| 119 | performing data transformation with resolvers or triggering a | ||
| 120 | subscription to be invoked from a mutation. | ||
| 121 | |||
| 122 | =item * | ||
| 123 | |||
| 124 | B<HTTP>: The data source is an HTTP endpoint. | ||
| 125 | |||
| 126 | =item * | ||
| 127 | |||
| 128 | B<RELATIONAL_DATABASE>: The data source is a relational database. | ||
| 129 | |||
| 130 | =back | ||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | =head1 SEE ALSO | ||
| 136 | |||
| 137 | This class forms part of L<Paws>, describing an object used in L<Paws::AppSync> | ||
| 138 | |||
| 139 | =head1 BUGS and CONTRIBUTIONS | ||
| 140 | |||
| 141 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 142 | |||
| 143 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 144 | |||
| 145 | =cut | ||
| 146 |